package com.smart.common.entities.option;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author Xiaxuqiu
 * 用于前端树形选择器数据字典封装
 * @date 2021-11-24
 **/
@Data
@AllArgsConstructor
@Accessors(chain = true)
public class TreeOption implements Serializable {

    /**
     * 字典标签
     */

    String label;
    /**
     * 字典值
     */


    Object value;
    /**
     * 关联上级值
     */

    Object parent;
    /**
     * 是否禁用
     */

    boolean disabled;

    public TreeOption(String label, Object value, Object parent) {
        this.label = label;
        this.value = value;
        this.parent = parent;
        this.disabled = false;

    }

}
